/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
<<<<<<< HEAD
 * @author: swx  Date: 2019-03-20
 */

import {Action} from "../../../../configuration/ActionCreator"
import {requestSave} from "../../../../request/DepartmentalRepairOrderRequest"
import {requestRepairRecordNewDefault} from "../../../../request/JobRequest"

/**
 * 获取数据
 * @str {string}
 */
export const SaveOrder = 'SaveOrder';
export const SaveRepairWorkOrder = (str) => {
    let action = Action(SaveOrder);
    return dispatch => dispatch(requestSave(action, str))
}
/**
 * 获取新建维修单默认参数
 * @type {string}
 */
export const GetRepairRecordNewDefault = 'GetRepairRecordNewDefault';
export const doGetRepairRecordNewDefault = () => dispatch => {
  let action = Action(GetRepairRecordNewDefault);
  return dispatch(requestRepairRecordNewDefault(action))
}
